Previous Book Contents Book Index Next

Inside Macintosh: 3D Graphics Programming With QuickDraw 3D /
Chapter 20 - QuickDraw 3D Mathematical Utilities / QuickDraw 3D Mathematical Utilities Reference
QuickDraw 3D Mathematical Utilities / Managing Quaternions


Q3Quaternion_SetRotateXYZ

You can use the Q3Quaternion_SetRotateXYZ function to configure a quaternion having a specified rotation around the x, y, and z axes.

TQ3Quaternion *Q3Quaternion_SetRotateXYZ (
TQ3Quaternion *quaternion, 
float xAngle, 
float yAngle, 
float zAngle);
quaternion
A quaternion.
xAngle
The desired angle of rotation around the x axis, in radians.
yAngle
The desired angle of rotation around the y axis, in radians.
zAngle
The desired angle of rotation around the z axis, in radians.
DESCRIPTION
The Q3Quaternion_SetRotateXYZ function returns, as its function result and in the quaternion parameter, a quaternion that rotates an object by the specified angles around the x, y, and z axes.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
11 JUL 1996